package com.shbt.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TReleaseBuyMoney entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_release_buy_money", catalog = "default_schema")
public class TReleaseBuyMoney implements java.io.Serializable {

	// Fields

	private Integer id;
	private TReleaseBuy TReleaseBuy;
	private Double hopePrice;

	// Constructors

	/** default constructor */
	public TReleaseBuyMoney() {
	}

	/** minimal constructor */
	public TReleaseBuyMoney(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public TReleaseBuyMoney(Integer id, TReleaseBuy TReleaseBuy,
			Double hopePrice) {
		this.id = id;
		this.TReleaseBuy = TReleaseBuy;
		this.hopePrice = hopePrice;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "t_release_buy_id")
	public TReleaseBuy getTReleaseBuy() {
		return this.TReleaseBuy;
	}

	public void setTReleaseBuy(TReleaseBuy TReleaseBuy) {
		this.TReleaseBuy = TReleaseBuy;
	}

	@Column(name = "hope_price", precision = 22, scale = 0)
	public Double getHopePrice() {
		return this.hopePrice;
	}

	public void setHopePrice(Double hopePrice) {
		this.hopePrice = hopePrice;
	}

}